package com.kugou.helloworld;
import android.test.AndroidTestCase;
import static com.kugou.test.helper.TestHelper.*;
import org.junit.Test;

/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ExampleTest extends AndroidTestCase{
    @Test
    public void testDebug() {
        ServiceUtil.bindToService(getContext());

        for(int i=0; i<15; i++){
            if (ServiceUtil.isBuild()){
                break;
            }
            print("no build %d", i);
            sleep(1);
        }

        print("service time %d", ServiceUtil.getServiceRunTime());
    }
}